package com.example.springvue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class AdminUser {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;
    private String nickname;
    private String password;
    private String salt;
    private String avatar;
    private String email;
    private String loginfailure;
    private String logintime;
    private String loginip;
    private Timestamp createtime;
    private Timestamp updatetime;
    private String token;
    private Integer status;
    private Integer siteId;
    private Integer sort;
    private String serviceMsg;
    private String wechatImage;
    private Integer isService;
    private Integer isChat;

    @TableField(exist = false)
    private int groupId; //关联查询，外键 角色id

}
